package com.yeren.string;
/**
 * 构建和谐社会做贡献的ReplaceAll
 * @author Administrator
 *
 */
public class ReplaceAllDemo2 {
	public static void main(String[] args){
		String regex="(SB|WQNMLGB|TMB|NND|WC|NC|CNM)";
		String message="WC!你个SB!怎么这么NC!";
		message=message.replaceAll(regex, "*****");
		System.out.println(message);
	}
}
